/* VARIABLES */
:root {
  --blue: rgb(6, 6, 175);
  --yellow: rgb(255, 174, 0);
  --darkorange: rgb(136, 69, 2);
}

/* INITIAL */
* {
  padding: 0;
  margin: 0;
  font-family: "Truculenta", sans-serif;
  scroll-behavior: smooth;
}
body {
  background-color: var(--yellow);
}

/* NAVIGATION */

#head {
  background-color: var(--darkorange);
  padding: 15px 20px;
  font-weight: 800;
  max-width: 98.9%;
  position: sticky;
  top: 0;
}

.navigation {
  display: flex;
  justify-content: space-between;
  list-style: none;
}
li a {
  padding: 0 40px;
  font-size: 20px;
  cursor: pointer;
  color: var(--yellow);
  text-decoration: none;
  transition: all 0.4s ease-in;
}
li a:hover {
  color: var(--blue);
}
.initial {
  display: flex;
  justify-content: space-between;
}

/* SIGN IN */
main {
  max-width: 60%;
  margin: 6rem auto;
  background-color: var(--blue);
  padding: 10px;
  border-radius: 10px;
  box-shadow: 2px 2px 20px 20px black;
  animation: slide_in 0.5s;
  animation-iteration-count: 1;
}
#sign_in_form {
  position: relative;
  margin-bottom: 20px;
  width: 80%;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.5s ease-in;
}

#sign_in_form input {
  padding: 0.6rem;
  width: 96%;
  border-radius: 6px;
  background-color: var(--yellow);
  color: var(--blue);
  font-size: 15px;
  letter-spacing: 1px;
  font-weight: 800;
}

#sign_in_form_button {
  width: 100%;
  margin-left: auto;
  padding: 0.6rem 0.2rem;
  cursor: pointer;
  border-radius: 8px;
  border: none;
  background-color: var(--yellow);
  color: var(--blue);
  font-size: 1.3em;
  font-weight: 800;
  transition: all 0.5s ease-in-out;
}
#sign_in_form_button:hover {
  background-color: var(--darkorange);
}
#sign_in_form_button:disabled {
  cursor: not-allowed;
  background-color: gray;
}
#sign_in_form input:disabled {
  cursor: not-allowed;
  background-color: gray;
}
main p {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--yellow);
  transition: all 0.5s ease-in-out;
}

main p a {
  color: rgb(0, 255, 0);
  font-size: 24px;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.5s ease-in-out;
}

main p a:hover {
  text-decoration: underline;
}

#forgot_password {
  color: var(--yellow);
  font-size: 20px;
  width: 40%;
  margin-left: 8px;
  text-decoration: none;
}

#forgot_password:hover {
  text-decoration: underline;
}
#erroe_message {
  font-size: 16px;
  font-weight: 800;
  color: rgb(252, 87, 87);
  transition: all 0.5s ease-in-out;
}

@keyframes slide_in {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* LOADING */
#loader {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--yellow);
  border-radius: 50%;
  margin: 0 auto;
  border-top-color: var(--blue);
  animation: loading 0.8s;
  animation-iteration-count: infinite;
}
@keyframes loading {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

.eye {
  background-color: transparent;
  border: none;
  font-size: 15px;
  width: 20px;
  position: absolute;
  top: 4.6rem;
  right: 2.5%;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
}
.eye:hover {
  opacity: 0.5;
}
#open_eye {
  display: none;
}

/* MEDIA QUERRY */
@media screen and (max-width: 628px) {
  nav {
    max-width: 98%;
  }
  .welcome_message {
    font-size: 20px;
  }

  li a {
    padding: 0 10px;
    font-size: 15px;
  }
  nav {
    padding: 0 6px;
  }
  .navigation .login {
    padding: 0 10px;
  }
  .initial_message {
    font-size: 15px;
    padding: 0 2rem;
  }
  #sign_in_form input {
    width: 94%;
  }
  main p {
    font-size: 15px;
  }
  main p a {
    font-size: 20px;
  }
  #forgot_password {
    font-size: 15px;
  }
}

@media screen and (max-width: 481px) {
  li a {
    padding: 2px 8px;
    font-size: 10px;
  }
  #sign_in_form input {
    width: 92%;
  }
}

@media screen and (max-width: 390px) {
  #sign_in_form input {
    width: 92%;
  }
  main p {
    font-size: 10px;
  }
  main p a {
    font-size: 15px;
  }
  #forgot_password {
    font-size: 10px;
  }
}

@media screen and (max-width: 840px) {
  main {
    max-width: 98%;
    margin: 6rem 2rem;
  }
}
